# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-coreschema
_pkgname=coreschema
pkgver=0.0.4
pkgrel=3
pkgdesc="No description or topics provided"
url="https://github.com/core-api/python-coreschema"
arch="noarch"
license="BSD"
depends="py3-jinja2"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-coreschema/archive/$pkgver.tar.gz"
builddir="$srcdir"/python-$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3 tests/
}

package() {
	python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}

sha512sums="28badbae07284fb4dbd3f01f613edda1202902115fb166bd95bbac549d398c9e02548b473524d3b530a42319a99d7e55e92bf54269827a9812249cfb285670c3  py3-coreschema-0.0.4.tar.gz"
